var fl=new Vue({
	el:"#fl",
	data:{
		vid:0,
		venue:{},
		followeds:[],
		fanses:[]

	},
	mounted(){
		axios.get("/venue/session").then(res=>{
			console.info("sessionVenue:")
			console.info(res.data.data);
			this.vid=res.data.data.vid;
			axios.get("/venue/find/"+this.vid).then(e=>{
				console.info(e.data.data);
				this.venue=e.data.data;
				// venue=e.data.data;
				console.info(this.venue)
				axios.get("/relationship/followed/"+this.venue.vid)
					.then(response=>{
						console.info(response)
						this.followeds=response.data.data;
						console.info("this:")
						console.info(this)
					})
					.catch(err=>{
						console.info(err);
					});
					axios.get("/relationship/fans/"+this.venue.vid)
						.then(response=>{
							console.info(response)
							this.fanses=response.data.data;
						})
						.catch(err=>{
							console.info(err);
						});
			}).catch(er=>{
				console.info(er)
			});
		}).catch(err=>{
			console.info(err)
		});

	}
});